package com.bootdo.per.service;

import com.bootdo.per.domain.ScoreDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

/**
 * 
 * 
 * @author readke
 * @email 1992lcg@163.com
 * @date 2018-06-27 15:01:02
 */
public interface ScoreService {
	
	ScoreDO get(Long id);
	
	List<Map<String, Object>> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(ScoreDO score);
	
	int update(ScoreDO score);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	int saveResult(List<Map<String, Object>> List, Map<String, Object> map);
	
	//根据年份得到团队名
	List<String> getTeamByYear(@Param("year") Integer year);
	
	//根据团队名得到所有团队的分数
	List<ScoreDO> listTeamScore(@Param("name") String name);
	
	//根据部门和年份得到所有团队的团队名
	List<String> getTeamByDept(Map<String,Object> map);
	
	//根据年份得到员工姓名
	List<String> getPersonByYear(@Param("year") Integer year);
	
	//根据员工姓名得到所有人的分数
	List<ScoreDO> listPersonScore(@Param("name") String name);
	
	//根据部门和年份得到所有员工的姓名
	List<String> getPersonByDept(Map<String,Object> map);
}
